3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
You create a view object by calling the function Q3View_New . If successful, Q3View_New returns a new empty view object. You must then configure the view object by specifying a renderer, a camera, a group of lights, and a model. Listing 9 illustrates how to create and configure a view. Only one object of each of these types can be associated with a view object at a given time. You can, however, have multiple view objects in your application, each associated with a different window.
The group of lights is optional. A view, however, must contain a camera, a renderer, and a draw context.
Previous | QD3D Book | Overview | Chapter Contents | Next |